package com.vip.elastic.model.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * description
 *
 * @author wgb
 * @date 2020/11/10 16:17
 */
@Data
@Accessors(chain = true)
public class AddDocumentDto {
    @NotNull(message = "ID不能为空")
    private Long id;

    private String firstCode;

    private String secondCode;
    @NotNull(message = "内容不能为空")
    private String content;

    private Integer type;
}
